let RegExp = {
	isValidUserName: (str) => {
		let valid_map = ['admin', 'test']
		return valid_map.indexOf(str.trim()) >= 0
	},
	validateURL: (str) => {
		let urlregex =
			/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/
		return urlregex.test(str)
	},
	validateLowerCase: (str) => {
		let reg = /^[a-z]+$/
		return reg.test(str)
	},
	validateUpperCase: (str) => {
		let reg = /^[A-Z]+$/
		return reg.test(str)
	},
	validatAlphabets: (str) => {
		let reg = /^[A-Za-z]+$/
		return reg.test(str)
	}
}

export default RegExp;
